package com.example.mapper;

import com.example.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *UserMapper
 */

@Mapper
public interface TbUserMapper {
    List<TbUser> findTbUsers();
    TbUser findTbUserByUserName(@Param("user_name") String user_name);
    int addTbUser(@Param("user_name")String user_name,@Param("login_name") String login_name,@Param("password") String password);

    int updateTbUser(@Param("tbuser")TbUser tbUser);

    int deleteTbUser(@Param("id")long id);
}
